<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty price_format modifier plugin
 *
 * Type:     modifier<br>
 * Name:     price_format<br>
 * @param string
 * @param mix
 * @return string
 */
//require_once 'core/config.php';
function smarty_function_get_booth_menu($params, &$smarty)
{
    $id =0;
    foreach($params as $_key => $_val) {
        switch($_key){
            case 'id':
                $id = $_val;
                break;

        }
    }
    $booth_menu = false;
    if($id > 0){
        $booth_menu = Db_BoothMenu::getBoothMenus('','(`booth_id`='.$id.') AND (`status`=1)');
    }
    $smarty->assign($params['booth_menu'],$booth_menu);
    //return $user;
}

